       <div class="header2">
                <p class="pHead">Thêm Mới Sản Phẩm</p>
                <img src="<?php echo base_url()?>images/back_end/icon/back.png" class="iconBack" alt="icon" />
                <span class="back"><a href="#">Quay lại trang trước</a></span>
            </div>

	            <div class="contentMain">
	            	<div class="contentSearch">
            	    <form method="POST" action="<?php echo base_url() ?>back_end/category_news/edit/<? echo $admin_menu_value['id']; ?>">    	
	            	<table class="tableSearch">
	            		 <tr>
	                    	<td class="tdSearch">Danh mục cha:</td>
	                    	<td class="tdSearch2">
	                            <select name="parent_id" class="selectText">
                            		<?php
                            			$exp = explode('.', $admin_category_news_value['root_path']);
                            			
                            			if( count($exp) == 1){
                            		?>
                            				<option value="0">
                            					------------- Danh mục cha -------------
                            				</option>
                            		<?php 
                            				foreach ($list_menu as $key=>$value) {	
                            		?>
											<option value="<?php echo $key; ?>">
												<?php echo $value; ?>
											</option>	                            	
		                           		<?php }
	                            		} else if (count($exp) == 2 ) {?>
	                            			<option value="0">
                            					------------- Danh mục cha -------------
                            				</option>
		                            	<?php foreach ($list_menu as $key=>$value) { ?>
											<option value="<?php echo $key; ?>" <?php if($key == $exp['0']){ echo 'selected=selected';} ?>>
												<?php echo $value; ?>
											</option>	                            	
			                           	<?php }
	                            		} else if (count($exp) == 3 ) {?>
	                            			<option value="0">
                            					------------- Danh mục cha -------------
                            				</option>
		                            	<?php foreach ($list_menu as $key=>$value) { ?>
											<option value="<?php echo $key; ?>" <?php if($key == $exp['1']){ echo 'selected=selected';} ?>>
												<?php echo $value; ?>
											</option>	                            	
			                           	<?php }
	                            		 }
		                           		?>
	                            </select>
	                    	</td>
                  		</tr>
	                	<tr>
	                    	<td class="tdSearch">Tên danh mục:</td>
	                    	<td class="tdSearch2">
	                    		<input type="text" class="inputText" name="name" value="<?php echo $admin_category_news_value['name']; ?>"/>
	                    	</td>
	                    </tr>
	                	<tr>
	                    	<td class="tdSearch">Bí danh:</td>
	                    	<td class="tdSearch2">
	                    		<input type="text" class="inputText" name="alias" value="<?php echo $admin_category_news_value['alias']; ?>" />
	                    	</td>
	                    </tr>
	                    <tr>
	                    	<td class="tdSearch">Trạng thái:</td>
	                    	<td>
	                    		<input type="checkbox" name="status" class="inputCheck" <?php if ($admin_category_news_value['status'] == 1){ echo "checked=checked"; }?>>
	                    	</td>
	                    </tr>
	                	<tr>
	                    	<td class="tdSearch">&nbsp;</td>
	                    	<td class="tdSearch2">                        	
	                            <div class="searchbutton">
	                                    <input type="submit" class="buttonSM" value="Add" name="editForm" />
	                            </div><!-- end searchbutton -->                      	
	                            <div class="searchbutton searchReset" >
	                                    <input type="reset" class="buttonSM"  value="Reset" name="reset" />
	                            </div><!-- end searchbutton -->
	                        </td>
	                    </tr>
	                </table>
	                </form>

	            	</div><!-- end contentSearch -->
	            </div><!-- end contentMain -->
          